<h1>Listing plans</h1>

<table>
  <tr>
    <th>User</th>
    <th>List</th>
    <th>Desc</th>
    <th>Comment</th>
  </tr>

<% @plans.each do |plan| %>
  <tr>
    <td><%=h plan.user_id %></td>
    <td><%=h plan.list_id %></td>
    <td><%=h plan.desc %></td>
    <td><%=h plan.comment_id %></td>
    <td><%= link_to 'Show', plan %></td>
    <td><%= link_to 'Edit', edit_plan_path(plan) %></td>
    <td><%= link_to 'Destroy', plan, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New plan', new_plan_path %>